<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{course_desc}</title>
<link rel="shortcut icon" href="{dir_image}favicon.ico">
<link rel="stylesheet" type="text/css" href="{dir_css}Global.css" />
<link rel="stylesheet" type="text/css" href="{dir_css}Popup.css" />
<link rel="stylesheet" type="text/css" href="{dir_css}Dean.css" />
<link rel="stylesheet" type="text/css" href="{dir_css}Students.css" />
<link rel="stylesheet" type="text/css" href="{dir_css}jquery.mCustomScrollbar.css" />

<script type="text/javascript" src="{dir_js}jquery.min.js"></script>
<script type="text/javascript" src="{dir_js}jquery.mCustomScrollbar.concat.min.js"></script>
<script type="text/javascript" src="{dir_js}Global.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$(".print-preview-subject").mCustomScrollbar({
			scrollInertia:120
		});
	});
	function showLoading(strID) {
		$('#loading_img'+strID).show();
	}

	function setSchedule(strID, strAction) {
		if (strAction == 'show') {
			
			//strArray = $('#subj_active').val().split(', ');
			if($('#subj_active').val().indexOf(strID) < 0) {
				$('.'+strID).show();
			}
			
		}
		else {
			$('.'+strID).hide();
		}
	}
	
	/*function clickSchedule(strID, stud_id, course_id, sem_linker_id, year_id, subj_id, prof_subj_sched_id) {
		
		$('#time'+strID).show();
		$('#time'+strID).css('background-color', 'white').attr('id', 'time'+strID).html('<img src="{dir_image}icon/loading_round.gif" border="0"/>');
		$.post('request.php', {AJAXPost:'IrregularSetSchedule', stud_id:stud_id, course_id:course_id, sem_linker_id:sem_linker_id, year_id:year_id, subj_id:subj_id, prof_subj_sched_id:prof_subj_sched_id}, function() {
			window.location.reload();
		});
	}*/
	
	function clickSchedule(strID, stud_id, course_id, sem_linker_id, year_id, subj_id, ps_id, section_id) {
		$('#time'+strID).show();
		$('#time'+strID).css('background-color', 'white').attr('id', 'time'+strID).html('<img src="{dir_image}icon/loading_round.gif" border="0"/>');
		$.post('request.php', {AJAXPost:'IrregularSetSchedule', stud_id:stud_id, course_id:course_id, sem_linker_id:sem_linker_id, year_id:year_id, subj_id:subj_id, ps_id:ps_id, section_id:section_id}, function() {
			window.location.reload();
		});
	}
	
	function clickDeleteSchedule(studID, strID, scsiID, semLinker, subjGroup) {
		$('#time'+strID).css('background-color', 'white').attr('id', 'time'+strID).html('<img src="{dir_image}icon/loading_round.gif" border="0"/>');
		$.post('request.php', {AJAXPost:'IrregularDeleteSchedule', stud_id:studID, scsi_id:scsiID, sem_linker:semLinker, subj_group:subjGroup}, function() {
			window.location.reload();
		});
	}
	
	function submitRequestSectionForm() {
		$.post('request.php', {AJAXPost:'SendRequestIrregularSchedule', stud_id:$('#studID').val()}, function() {
			window.location.reload();
		});
	}
	
	function cancelRequestSchedule() {
		$.post('request.php', {AJAXPost:'CancelRequestIrregularSchedule', stud_id:$('#studID').val()}, function() {
			window.location.reload();
			parent.popupRequest('hide');
		});
	}
	
</script>

</head>
<body class="print-preview-subject">

	<input type="hidden" id="studID" value="{stud_id}"/>
	<input type="hidden" id="subj_active" value="{subj_active}"/>
								
	<div class="subj-list-spacer"></div>
	<div class="page-sub-sched">
		<div class="semester-page-width"><span style="font-weight:normal;"><em>School Year:</em></span> {sy_label}</div>
		<div class="semester-page-width"><span style="font-weight:normal;"><em>Course:</em></span> {course_label}</div>
		<div class="semester-page-width"><span style="font-weight:normal;"><em>Section:</em></span> {section_desc}</div>
		
		{request_button}
		
		{time_table}<br />{subjList_html}
	</div>
</body>
</html>